﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            UP u1 = new UP("金士顿64G");
            u1.Read();
            u1.Write();
            Console.WriteLine();

            YDYP a1 = new YDYP("三星500G");
            a1.Read();
            a1.Write();
            Console.WriteLine();
            DN e1 = new DN("联想");
            e1.Start();
            e1.U1 = u1;
            e1.U2 = a1;
            e1.ReadData();
            e1.WriteData();
            e1.End();

        }
    }
}
